package com.springapp.mvc.dto;


public class PostResult {

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    private String errorMessage;

    private PostResult(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public static PostResult success() {
        return new PostResult("");
    }

    public static PostResult failure(String message) {
        return new PostResult(message);
    }
}
